class Phone:
    IMEI = None
    producer = "ITCAST"

    def call_by_5G(self):
        print("使用5G网络进行通话")


# 定义子类
class MyPhone(Phone):
    producer = "ITHEIMA"  # 复写父类成员属性

    def call_by_5G(self):
        print("开启CPU单核模式,确保通话时省电")
        # 在子类中调用父类的方法
        # 方式1
        print(f"父类的厂商是：{Phone.producer}")
        # Phone.call_by_5G(self)
        # 方式2
        print(f"父类的厂商：{super().producer}")
        super().call_by_5G()
        print("关闭CPU单核模式,确保性能")


phone = MyPhone()
phone.call_by_5G()
print(phone.producer)




